JUnit Sample Code


Main.java - this is the entry point to the program

Triangle.java - this is the source code we are testing. For the project this file would only contain stubs of the methods. The methods should have valid signatures (take the correct parameters and return the correct types), but the return values can just be empty methods: return false;

TriangleTest.java - this is the actual unit test. For the project this is the only file you would turn in.

(All need to be in package: junitexample)